// 创建用于管理极速问诊订单记录的状态切片
export const fastRecordSlice = createSlice<
  FastRecordState,
  {
    // 删除订单
    removeOrder(
      state: Draft<FastRecordState>,
      action: PayloadAction<string>
    ): void;
  },
  "fastRecord"
>({
  reducers: {
    // 删除订单
    removeOrder: fastRecordsAdapter.removeOne,
  },
});

// 导出 action creator 函数
export const { removeOrder } = fastRecordSlice.actions;